package order.main;

import order.org.R;

import org.util.check;

import android.app.AlertDialog;
import android.content.DialogInterface;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;

public class MsgDialog {
	public static AlertDialog create(String title,String msg){
    	LayoutInflater factory = LayoutInflater.from(userConfiguration.getInstance().getContext());
    	
    	
		final View textEntryView = factory.inflate(
				R.layout.msgdialog, null);
		TextView msgtext=(TextView)textEntryView.findViewById(R.id.msg);
		msgtext.setText(Html.fromHtml(msg));
		msgtext.setMovementMethod(LinkMovementMethod.getInstance()); 
			AlertDialog dlg = new AlertDialog.Builder(userConfiguration.getInstance().getContext()).setTitle(title)
				.setView(textEntryView).create();
		return dlg;
    	
    }
}
